package org.mat.ipaas.ucenter.service.api.system;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.mat.framework.lang.dto.MatApiResponse;
import org.mat.ipaas.ucenter.service.dto.system.model.DuplicateCheckVoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @Title: DuplicateCheckAction
 * 重复校验工具
 * @Author 张代浩
 * @Date 2019-03-25
 * @Version V1.0
 */
@Api(tags="重复校验")
@FeignClient(name = "mat-ipaas-ucenter-service",contextId = "duplicate-check-rest-api")
public interface DuplicateCheckRestAPI {

	/**
	 * 校验数据是否在系统中是否存在
	 * 
	 * @return
	 */
	@RequestMapping(value = "/sys/duplicate/check", method = RequestMethod.GET)
	@ApiOperation("重复校验接口")
    MatApiResponse<String> doDuplicateCheck(@SpringQueryMap DuplicateCheckVoDTO duplicateCheckVoDTO);

}
